import { ErrorBoundary, type Component } from "solid-js";

import logo from "./logo.svg";
import styles from "./App.module.css";
import DomainList from "./pages/DomainList";
import { error } from "console";
import { Alert } from "solid-fire-controls";

const App: Component = () => {
  return (
    <div class={styles.App}>
      <ErrorBoundary
        fallback={(error) => <Alert variant={"danger"}>{error.message}</Alert>}
      >
        <DomainList></DomainList>
      </ErrorBoundary>
    </div>
  );
};

export default App;
